
package com.application.projectview.service;

import java.util.ArrayList;
import java.util.List;

import com.application.projectview.dao.ProjectViewDAO;
import com.application.research1bm.entity.Research1bm;
import com.application.research1bm.service.Research1bmService;
import com.application.research1bm.struts.form.Research1bmForm;
import com.application.research2dycs.entity.Research2dycs;
import com.application.research2dycs.service.Research2dycsService;
import com.application.research2dycs.struts.form.Research2dycsForm;
import com.application.research3zxtce.entity.Research3zxtce;
import com.application.research3zxtce.service.Research3zxtceService;
import com.application.research3zxtce.struts.form.Research3zxtceForm;
import com.application.research4ylt.entity.Research4ylt;
import com.application.research4ylt.service.Research4yltService;
import com.application.research4ylt.struts.form.Research4yltForm;
import com.application.research5PCB.entity.Research5PCB;
import com.application.research5PCB.service.Research5PCBService;
import com.application.research5PCB.struts.form.Research5PCBForm;
import com.application.research6yjlt.entity.Research6yjlt;
import com.application.research6yjlt.service.Research6yjltService;
import com.application.research6yjlt.struts.form.Research6yjltForm;
import com.application.research7zxtts.entity.Research7zxtts;
import com.application.research7zxtts.service.Research7zxttsService;
import com.application.research7zxtts.struts.form.Research7zxttsForm;
import com.application.research8yfcs.entity.Research8yfcs;
import com.application.research8yfcs.service.Research8yfcsService;
import com.application.research8yfcs.struts.form.Research8yfcsForm;
import com.application.yfmaterieldepart.entity.YfMaterielDepart;
import com.application.yfmaterieldepart.service.YfMaterielDepartService;
import com.application.yfmaterieldepart.struts.form.YfMaterielDepartForm;
import com.application.yfoutsourcecontarct.entity.YfOutsourceContract;
import com.application.yfoutsourcecontarct.service.YfOutsourceContractService;
import com.application.yfoutsourcecontarct.struts.form.YfOutsourceContractForm;
import com.application.yfproject.entity.YfProject;
import com.application.yfproject.service.YfProjectService;
import com.application.yfproject.struts.form.YfProjectForm;
import com.application.yfprojectaccept.entity.YfProjectAccept;
import com.application.yfprojectaccept.service.YfProjectAcceptService;
import com.application.yfprojectaccept.struts.form.YfProjectAcceptForm;
import com.application.yfprojectapproval.entity.YfProjectApproval;
import com.application.yfprojectapproval.service.YfProjectApprovalService;
import com.application.yfprojectapproval.struts.form.YfProjectApprovalForm;
import com.application.yfprojectdesign.entity.YfProjectDesign;
import com.application.yfprojectdesign.service.YfProjectDesignService;
import com.application.yfprojectdesign.struts.form.YfProjectDesignForm;
import com.application.yfprojectpilot.entity.YfProjectPilot;
import com.application.yfprojectpilot.service.YfProjectPilotService;
import com.application.yfprojectpilot.struts.form.YfProjectPilotForm;
import com.application.yfprojectplan.entity.YfProjectPlan;
import com.application.yfprojectplan.service.YfProjectPlanService;
import com.application.yfprojectplan.struts.form.YfProjectPlanForm;
import com.application.yfprojectsurvey.entity.YfProjectSurvey;
import com.application.yfprojectsurvey.service.YfProjectSurveyService;
import com.application.yfprojectsurvey.struts.form.YfProjectSurveyForm;
import com.manager.BaseService;


public class ProjectViewServiceImpl extends BaseService implements ProjectViewService {
    
	private ProjectViewDAO projectViewDAO;
	
	private YfProjectService yfProjectService;
	
	private YfProjectSurveyService yfProjectSurveyService;
	
	private YfProjectApprovalService yfProjectApprovalService;
	
	private YfOutsourceContractService yfOutsourceContractService;
	
	private YfProjectPlanService yfProjectPlanService;
	
	private YfProjectDesignService yfProjectDesignService;
	
	private Research1bmService research1bmService;

	private Research2dycsService research2dycsService;
	
	private Research3zxtceService research3zxtceService;
	
	private Research4yltService research4yltService;
	
	private Research5PCBService research5PCBService;
	
	private Research6yjltService research6yjltService;
	
	private Research7zxttsService research7zxttsService;
	
	private Research8yfcsService research8yfcsService;
	
	private YfProjectPilotService yfProjectPilotService;
	
	private YfProjectAcceptService yfProjectAcceptService;
	
	private YfMaterielDepartService yfMaterielDepartService;
 
	public YfProject findYfproject(String id) {
		YfProjectForm yfProjectForm = new YfProjectForm();
		yfProjectForm.setId(id);
		try {
			return this.yfProjectService.searchYfProject(yfProjectForm, null).get(0);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}
	//项目调研
	public List<YfProjectSurvey> findYfxmdy(String projectNo) {
		YfProjectSurveyForm yfProjectSurveyForm = new YfProjectSurveyForm();
		yfProjectSurveyForm.setProjectNo(projectNo);
		try {
			return yfProjectSurveyService.searchYfProjectSurvey(yfProjectSurveyForm);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return new ArrayList();
	}
	
	//立项申请
	public  List<YfProjectApproval> findYflxsq(String projectNo) {
		YfProjectApprovalForm yfProjectApprovalForm = new YfProjectApprovalForm();
		yfProjectApprovalForm.setProjectNo(projectNo);
		try {
			return yfProjectApprovalService.searchYfProjectApproval(yfProjectApprovalForm,null);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return new ArrayList();
	}
	
	//外协合同
	public List<YfOutsourceContract> findYfwxht(String projectNo) {
		YfOutsourceContractForm yfOutsourceContractForm = new YfOutsourceContractForm();
		yfOutsourceContractForm.setProjectNo(projectNo);
		try {
			return yfOutsourceContractService.searchYfOutsourceContract(yfOutsourceContractForm,null);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return new ArrayList();
	}
	
	//项目计划
	public List<YfProjectPlan> findYfxmjh(String projectNo) {
		YfProjectPlanForm yfProjectPlanForm = new YfProjectPlanForm();
		yfProjectPlanForm.setProjectNo(projectNo);
		try {
			return yfProjectPlanService.searchYfProjectPlan(yfProjectPlanForm,null);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return new ArrayList();
	}
	
	//概要设计
	public List<YfProjectDesign> findYfgysj(String projectNo) {
		YfProjectDesignForm yfProjectDesignForm = new YfProjectDesignForm();
		yfProjectDesignForm.setProjectNo(projectNo);
		yfProjectDesignForm.setDesignType(new Long(0));
		try {
			return yfProjectDesignService.searchYfProjectDesign(yfProjectDesignForm,null);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return new ArrayList();
	}


	 //硬件详细设计
	public List<YfProjectDesign> findYfyjxxsj(String projectNo) {
		YfProjectDesignForm yfProjectDesignForm = new YfProjectDesignForm();
		yfProjectDesignForm.setProjectNo(projectNo);
		yfProjectDesignForm.setChildType(new Long(0));
		try {
			return yfProjectDesignService.searchYfProjectDesign(yfProjectDesignForm,null);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return new ArrayList();
	}
	//软件详细设计
	public List<YfProjectDesign> findYfrjxxsj(String projectNo) {
		YfProjectDesignForm yfProjectDesignForm = new YfProjectDesignForm();
		yfProjectDesignForm.setProjectNo(projectNo);
		yfProjectDesignForm.setChildType(new Long(1));
		try {
			return yfProjectDesignService.searchYfProjectDesign(yfProjectDesignForm,null);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return new ArrayList();
	}
    //接口设计
	public List<YfProjectDesign> findYfjksj(String projectNo) {
		YfProjectDesignForm yfProjectDesignForm = new YfProjectDesignForm();
		yfProjectDesignForm.setProjectNo(projectNo);
		yfProjectDesignForm.setChildType(new Long(2));
		try {
			return yfProjectDesignService.searchYfProjectDesign(yfProjectDesignForm,null);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return new ArrayList();
	}


	public List<Research1bm> findResearch1(String projectNo) {
		Research1bmForm research1bmForm = new Research1bmForm();
		research1bmForm.setProjectNo(projectNo);
		try {
			return research1bmService.searchResearch1bm(research1bmForm,null);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return new ArrayList();
	}
	public List<Research2dycs> findResearch2(String projectNo) {
		Research2dycsForm research2dycsForm = new Research2dycsForm();
		research2dycsForm.setProjectNo(projectNo);
		try {
			return research2dycsService.searchResearch2dycs(research2dycsForm,null);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return new ArrayList();
	}
	public List<Research3zxtce> findResearch3(String projectNo) {
		Research3zxtceForm research3zxtceForm = new Research3zxtceForm();
		research3zxtceForm.setProjectNo(projectNo);
		try {
			return research3zxtceService.searchResearch3zxtce(research3zxtceForm,null);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return new ArrayList();
	}
	public List<Research4ylt> findResearch4(String projectNo) {
		Research4yltForm research4yltForm = new Research4yltForm();
		research4yltForm.setProjectNo(projectNo);
		try {
			return research4yltService.searchResearch4ylt(research4yltForm,null);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return new ArrayList();
	}
	public List<Research5PCB> findResearch5(String projectNo) {
		Research5PCBForm research5PCBForm = new Research5PCBForm();
		research5PCBForm.setProjectNo(projectNo);
		try {
			return research5PCBService.searchResearch5PCB(research5PCBForm,null);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return new ArrayList();
	}
	public List<Research6yjlt> findResearch6(String projectNo) {
		Research6yjltForm research6yjltForm = new Research6yjltForm();
		research6yjltForm.setProjectNo(projectNo);
		try {
			return research6yjltService.searchResearch6yjlt(research6yjltForm,null);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return new ArrayList();
	}
	public List<Research7zxtts> findResearch7(String projectNo) {
		Research7zxttsForm research7zxttsForm = new Research7zxttsForm();
		research7zxttsForm.setProjectNo(projectNo);
		try {
			return research7zxttsService.searchResearch7zxtts(research7zxttsForm,null);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return new ArrayList();
	}
	public List<Research8yfcs> findResearch8(String projectNo) {
		Research8yfcsForm research8yfcsForm = new Research8yfcsForm();
		research8yfcsForm.setProjectNo(projectNo);
		try {
			return research8yfcsService.searchResearch8yfcs(research8yfcsForm,null);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return new ArrayList();
	}



	public List<YfMaterielDepart> findYfMaterielDepart1(String projectNo) {
		YfMaterielDepartForm yfMaterielDepartForm = new YfMaterielDepartForm();
		yfMaterielDepartForm.setProjectNo(projectNo);
		yfMaterielDepartForm.setType(new Long(0));
		try {
			return yfMaterielDepartService.searchYfMaterielDepart(yfMaterielDepartForm);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return new ArrayList();
	}

	public List<YfMaterielDepart> findYfMaterielDepart2(String projectNo) {
		YfMaterielDepartForm yfMaterielDepartForm = new YfMaterielDepartForm();
		yfMaterielDepartForm.setProjectNo(projectNo);
		yfMaterielDepartForm.setType(new Long(1));
		try {
			return yfMaterielDepartService.searchYfMaterielDepart(yfMaterielDepartForm);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return new ArrayList();
	}

	public List<YfProjectAccept> findYfProjectAccept(String projectNo) {
		YfProjectAcceptForm yfProjectAcceptForm = new YfProjectAcceptForm();
		yfProjectAcceptForm.setProjectNo(projectNo);
		try {
			return yfProjectAcceptService.searchYfProjectAccept(yfProjectAcceptForm,null);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return new ArrayList();
	}

	public List<YfProjectPilot> findYfProjectPilot(String projectNo) {
		YfProjectPilotForm yfProjectPilotForm = new YfProjectPilotForm();
		yfProjectPilotForm.setProjectNo(projectNo);
		try {
			return yfProjectPilotService.searchYfProjectPilot(yfProjectPilotForm,null);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return new ArrayList();
	}
	









	



	public void setProjectViewDAO(ProjectViewDAO projectViewDAO) {
		this.projectViewDAO = projectViewDAO;
	}


	public void setYfProjectSurveyService(
			YfProjectSurveyService yfProjectSurveyService) {
		this.yfProjectSurveyService = yfProjectSurveyService;
	}


	public void setYfProjectService(YfProjectService yfProjectService) {
		this.yfProjectService = yfProjectService;
	}

	public void setYfProjectApprovalService(
			YfProjectApprovalService yfProjectApprovalService) {
		this.yfProjectApprovalService = yfProjectApprovalService;
	}

	public void setYfOutsourceContractService(
			YfOutsourceContractService yfOutsourceContractService) {
		this.yfOutsourceContractService = yfOutsourceContractService;
	}

	public void setYfProjectPlanService(YfProjectPlanService yfProjectPlanService) {
		this.yfProjectPlanService = yfProjectPlanService;
	}
	

	public void setYfProjectDesignService(
			YfProjectDesignService yfProjectDesignService) {
		this.yfProjectDesignService = yfProjectDesignService;
	}
	public void setResearch1bmService(Research1bmService research1bmService) {
		this.research1bmService = research1bmService;
	}
	public void setResearch2dycsService(Research2dycsService research2dycsService) {
		this.research2dycsService = research2dycsService;
	}
	public void setResearch3zxtceService(Research3zxtceService research3zxtceService) {
		this.research3zxtceService = research3zxtceService;
	}
	public void setResearch4yltService(Research4yltService research4yltService) {
		this.research4yltService = research4yltService;
	}
	public void setResearch5PCBService(Research5PCBService research5PCBService) {
		this.research5PCBService = research5PCBService;
	}
	public void setResearch6yjltService(Research6yjltService research6yjltService) {
		this.research6yjltService = research6yjltService;
	}
	public void setResearch7zxttsService(Research7zxttsService research7zxttsService) {
		this.research7zxttsService = research7zxttsService;
	}
	public void setResearch8yfcsService(Research8yfcsService research8yfcsService) {
		this.research8yfcsService = research8yfcsService;
	}
	public void setYfProjectPilotService(YfProjectPilotService yfProjectPilotService) {
		this.yfProjectPilotService = yfProjectPilotService;
	}
	public void setYfProjectAcceptService(
			YfProjectAcceptService yfProjectAcceptService) {
		this.yfProjectAcceptService = yfProjectAcceptService;
	}
	public void setYfMaterielDepartService(
			YfMaterielDepartService yfMaterielDepartService) {
		this.yfMaterielDepartService = yfMaterielDepartService;
	}
	


	
}
